package com.ky.my.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 浏览记录表
 * </p>
 *
 * @author hmt
 * @since 2024-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("browsingHistory")
public class BrowsingHistory implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 浏览记录id
     */
    @TableId(value = "history_id", type = IdType.AUTO)
    private Integer historyId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 文章id
     */
    private Integer articleId;

    /**
     * 浏览时间
     */
    private Date createdAt;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;


}
